package com.dream.xiaobo.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author xiaobo
 * @date 2021/8/26 - 8:15
 * 订单项实体类
 */
public class Item implements Serializable {

    private static final Long serialVersionUID = 1L;

    private Integer iId;

    private BigDecimal iCount;

    private Integer iNum;

    private Integer pId;

    private String oId;

    private Product product;

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getiId() {
        return iId;
    }

    public void setiId(Integer iId) {
        this.iId = iId;
    }

    public BigDecimal getiCount() {
        return iCount;
    }

    public void setiCount(BigDecimal iCount) {
        this.iCount = iCount;
    }

    public Integer getiNum() {
        return iNum;
    }

    public void setiNum(Integer iNum) {
        this.iNum = iNum;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getoId() {
        return oId;
    }

    public void setoId(String oId) {
        this.oId = oId;
    }

    @Override
    public String toString() {
        return "Item{" +
                "iId=" + iId +
                ", iCount=" + iCount +
                ", iNum=" + iNum +
                ", pId=" + pId +
                ", oId='" + oId + '\'' +
                '}';
    }
}
